<?phpnamespace app\api\controller\food\user;use app\api\controller\food\Controller;use app\api\model\food\Record as RecordModel;/** * 用户交易管理 */class Record extends Controller{    /**     * 记录     */    public function logs($mode=0,$type=0)    {        $filter['user_id'] = $this->user_id;        $mode > 0 && $filter['mode'] = $mode;        $type > 0 && $filter['type'] = $type;        $model = new RecordModel;        $list = $model->getList($filter);        return $this->renderSuccess(compact('list'));    }}